#coding=utf-8
from safelabparser import getDataList

import unittest
class Test(unittest.TestCase):
    def test(self):

        x = getDataList("http://safelab.spaces.live.com/blog/cns!A6B213403DBD59AF!951.entry")
        print
        print x
        print 
        
        for url, res in eval(file("testdata.txt").read()).items():
            self.assertEqual(getDataList(url), res)        

if __name__ == "__main__":
    unittest.main()
